
#ifndef _MEMBER_BEVENT_H_
#define _MEMBER_BEVENT_H_

#include <BApplication>
#include <BWidget>
#include <BEvent>
#include <BMouseEvent>
#include <BDrag>
#include <BCursor>
#include "IWindow.h"

#define event_member(event)			((member_BEvent*)((BEvent*)event)->_ptr)

namespace BWE
{
	class member_BEvent
	{
	public:
		member_BEvent(BEvent* event);
		~member_BEvent();

		BEvent*		boss;
		IWindow*	window;
		BReal		time;
		Event		type;
		BValue		value;
		bool		accepted;
		BValue		result;

		BWidget*	focusInWidget;
		BWidget*	focusOutWidget;
		bool		focused;
		Key			key;

		BPoint		pos;
		Button		button;
		BPoint		absolutePos;
		BPoint		globalPos;
		int			wheel;
	};
}

#endif
